﻿using static DataModels.Enums.GeneralEnum;
using SqlSugar;

namespace DataModels.Entities.Community
{
    [SugarTable]
    public class CommunityActivities
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID {  get; set; } = Guid.NewGuid();

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 首图
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 活动地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 活动地点经度
        /// </summary>
        public decimal Longitude { get; set; }

        /// <summary>
        /// 活动地点纬度
        /// </summary>
        public decimal Latitude { get; set; }

        /// <summary>
        /// 咨询人姓名
        /// </summary>
        public string ContactPerson { get; set; }

        /// <summary>
        /// 咨询电话号码
        /// </summary>
        public string ContactPhone { get; set; }

        /// <summary>
        /// 活动参与信息填报
        /// </summary>
        public string Problem { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsIdentity = true)]
        public int ActivitiesNumber { get; set; }

        /// <summary>
        /// 所属项目
        /// </summary>
        public Guid ProjectUUID { get; set; }

        /// <summary>
        /// 活动是否显示
        /// </summary>
        public Status Status { get; set; } = Status.Enable;


        public DateTime CreateTime { get; set; } = DateTime.Now;

        public Guid CreateUserUUID { get; set; }

        public Status IsDelete { get; set; }


        /// <summary>
        /// 最大参与人数
        /// </summary>
        public int MaxJoiners { get; set; }


    }
}
